({
    doFetchData : function(component, event, helper) {
        component.set("v.currentPage", 1);
        helper.fetchData(component);
    },

    prePage: function(component, event, helper) {
        var currentPage = component.get("v.currentPage");
        component.set("v.currentPage", currentPage - 1);
        helper.fetchData(component);
    },
    
    nextPage: function(component, event, helper) {
        var currentPage = component.get("v.currentPage");
        component.set("v.currentPage", currentPage + 1);
        helper.fetchData(component);
    }
})
